package DAO.Book;
/*
Dao层接口
 */

import java.sql.SQLException;
import java.util.ArrayList;

public interface BooksDao {
    //查询所有图书信息
    public abstract ArrayList<Books> findAll() throws ClassNotFoundException, SQLException;

    //条件查询，根据BooksNum获取商品信息
    public abstract Books findByGoodsNum(String booksNum);

    //新增图书信息
    public abstract int insert(Books book);

    //修改图书信息
    public abstract int updata(Books book);

    //删除图书信息
    public abstract int delete(String boodsNum);
}

